package com.superwein.alibaba.dubbo.provider.service.impl;

import com.superwein.alibaba.dubbo.api.entity.User;
import com.superwein.alibaba.dubbo.api.service.UserService;
import com.superwein.alibaba.dubbo.provider.mapper.UserMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Service(version = "1.0.0")
@Component
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectUserById(Long id) {
        return userMapper.selectUserById(id);
    }

}
